#/bin/bash

if [ $# -ne 1 ]
then
    echo "Usage: $0 <softmax_v2_file>"
    exit 0
fi

file="$1"

# for key in q_ s_int16_ q_div9_value_ q_value_ quant_bitwidth_ lut_table_length_ lut_base_ q_shift_ s1_int16_
for key in r_blob_ q_sum_value_ signedSymbol_ reduced_blob_ q_sum_ e_blob_ reduce_axis_
do 
    sed -i "s/\(\<${key}\>\)/this->\1/g" "${file}"
done
